import httpRequest from '@/utils/httpRequest'
import constant from '../constant'

export function pageData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceCase/page',
    method: 'post',
    data: data
  })
}
export function listInterfaceCase (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceCase/list',
    method: 'post',
    data: data
  })
}

export function getData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceCase/get',
    method: 'post',
    data: data
  })
}
export function saveData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceCase/save',
    method: 'post',
    data: data
  })
}
export function updateData (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceCase/update',
    method: 'post',
    data: data
  })
}
export function batchTest (data) {
  return httpRequest({
    url: constant.DR + '/rule/interfaceCase/batchTestActuator',
    method: 'post',
    data: data
  })
}
// 测试环境信息查询
export function getenvironment (data) {
  return httpRequest({
    url: constant.DR + '/rule/environment/list',
    method: 'post',
    data: data
  })
}


